<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\SystemManagement\Employee;
use Faker\Generator as Faker;

$factory->define(Employee::class, function (Faker $faker) {
    return [
        'mark' => $faker->numberBetween(100,10000),
        'name' => $faker->name(),
        'id_type' => '身份证',
        'id_no' => $faker->numberBetween(10000,1000000),
        'id_start_time' => $faker->time('Y-m-d'),
        'id_end_time' => $faker->time('Y-m-d'),
        'birthday' =>  $faker->time('Y-m-d'),
        'phone' => $faker->phoneNumber,
        'email' => $faker->email,
        'education' => Str::random(5),
        'college' => Str::random(10),
        'age' => $faker->numberBetween(10,50),
        'sex' => $faker->numberBetween(0,1),
        'address' => $faker->address,
        'nation' => '汉',
        'bank_name' => Str::random(10),
        'account' => $faker->numberBetween(10000,1000000),
        'organization_id' => $faker->numberBetween(1,5),
        'department_id' => $faker->numberBetween(1,5),
        'post_id' => $faker->numberBetween(1,5),
        'skill_id' => $faker->numberBetween(1,5),
    ];
});
